@import "./var.less";

.ex-notification {
  display: flex;
  width: 330px;
  padding: @--notification-padding;
  border-radius: @--notification-radius;
  box-sizing: border-box;
  border: 1px solid @--notification-border-color;
  position: fixed;
  background-color: @--notification-background-color;
  box-shadow: @--notification-shadow;
  transition: opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;
  overflow: hidden;
  &.right {
    right: 0;
  }
  &.left {
    left: 0;
  }
  .ex-notification__group {
    margin-left: 13px;
    margin-right: 8px;
  }
  .ex-notification__title {
    font-weight: 700;
    font-size: 16px;
    color: @--notification-title-color;
    margin: 0;
  }
  .ex-notification__content{
    font-size: @--notification-content-font-size;
    line-height: 21px;
    margin: 6px 0 0;
    color: @--notification-content-font-color;
    text-align: justify;
    p {
      margin: 0;
    }
  }
  .ex-notification__closeBtn {
    position: absolute;
    top: 18px;
    right: 15px;
    cursor: pointer;
    color: @--notification-close-font-color;
    font-size: @--notification-close-font-size;
  }
  .ex-notification__icon {
    height: @--notification-icon-size;
    width: @--notification-icon-size;
    font-size: @--notification-icon-size;
  }
  .ex-success {
    color: @--notification-success-icon-color;
  }

  .ex-icon-error {
    color: @--notification-danger-icon-color;
  }

  .ex-icon-info {
    color: @--notification-info-icon-color;
  }

  .ex-icon-warning {
    color: @--notification-warning-icon-color;
  }
}
.ex-notification-fade-enter {
  &.right {
    right: 0;
    transform: translateX(100%);
  }

  &.left {
    left: 0;
    transform: translateX(-100%);
  }
}

.ex-notification-fade-leave-active {
  opacity: 0;
}